home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / POLYTOPE.ZIP / testpoly.pov < prev    next >
Encoding:
Text File  |  1997-08-01  |  1.4 KB  |  53 lines

  1. /*
  2.  
  3.     POLYTOPE OBJECT INCLUDE FILE v1.0b - example file for polytopes
  4.     Copyright (C) 1997 Thomas Willhalm
  5.  
  6.     This program is free software; you can redistribute it and/or modify
  7.     it under the terms of the GNU General Public License as published by
  8.     the Free Software Foundation; either version 2 of the License, or
  9.     (at your option) any later version.
  10.  
  11.     This program is distributed in the hope that it will be useful,
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20.  
  21. */
  22.  
  23. #include "colors.inc"
  24.  
  25. camera {
  26.   location <0, 4, 4>
  27.   look_at <0, 0, 0>
  28. }
  29.  
  30. global_settings{ assumed_gamma 1.0 }
  31.  
  32. light_source { <10, 20, 7> color White}
  33.  
  34. plane { y 0 pigment {checker Green, White}}
  35.  
  36. #declare array = "<0,0,0>,<0,0,1>,<0,1,0>,<1,0,0>"
  37. #include "polytope.inc"
  38. object {polytope
  39.   pigment {color Blue}
  40. }
  41.  
  42. #declare array = "<2,0,0>,<2,0,1>,<2,1,0>,<2,1,1>,<3,0,0>,<3,0,1>,<3,1,0>,<3,1,1>"
  43. #include "polytope.inc"
  44. object {polytope
  45.   pigment {color Blue}
  46. }
  47.  
  48. #declare array = "<-1,0,0>,<-1,0,1>,<-2,0,0>,<-2,0,1>,<-1.5,1,0.5>"
  49. #include "polytope.inc"
  50. object {polytope
  51.   pigment {color Blue}
  52. }
  53.